import request from '@/utils/request'

//获取可以配置的菜单项
export function getCanMenu(params) {
  return request({
    url: '/api/menu/getCanMenu',
    method: 'get',
    params
  })
}

//增加菜单项
export function addMenu(data) {
    return request({
      url: '/api/menu/addMenu',
      method: 'post',
      data
    })
  }

//修改菜单项
export function editMenu(data) {
    return request({
      url: '/api/menu/editMenu',
      method: 'post',
      data
    })
  }

  //删除菜单项
export function deleteMenu(data) {
    return request({
      url: '/api/menu/deleteMenu',
      method: 'post',
      data
    })
  }
  